// #include "util.hpp"

#ifndef __M_LEVEL_H__
#define __M_LEVEL_H__

namespace log_sys{
    class Log_level{
    public:
        enum class Value{
            UNOKNOWN = 0,
            DEBUG,
            INFO,
            WARN,
            ERROR,
            FATAL,
            OFF
        };
        
        static const char* logleveltostring(Log_level::Value level){
            switch (level)
            {
                case Log_level::Value::DEBUG: return "DEBUG";
                case Log_level::Value::INFO: return "INFO";
                case Log_level::Value::WARN: return "WARN";
                case Log_level::Value::ERROR: return "ERROR";
                case Log_level::Value::FATAL: return "FATAL";
                case Log_level::Value::OFF: return "OFF";
            }
            return "UNKNOWN";
        }
    };
};

#endif